﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string account = txtAccount.Text.Trim();
        string pasword = txtPassword.Text.Trim();
        string code = txtCode.Text.Trim();

        if (!Captcha1.Check(code))
        {
            CnGine.Comm.MessageBox.Show(this.Page, "验证码错误，请重新速输入！");
        }
        else
        {
            Session["admin"] = "admin";
            Response.Redirect("default.aspx");
        }
    }
}
